<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>修改问题内容</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <script src="static/sool/js/global.js"></script>
    <script src="static/sool/js/similarQuestion.js"></script>
    <script src="static/sool/js/jquery.js"></script>
    <script src="static/js/amazeui.min.js"></script>
    <script src="static/js/handlebars.min.js"></script>
    <script>
        JsAndCssUtil.importCss("/static/css/amazeui.min");
        JsAndCssUtil.importCss("/static/css/app");
        JsAndCssUtil.importCss("/static/css/font-awesome.min");
        JsAndCssUtil.importCss("/static/css/font-awesome");
        JsAndCssUtil.importCss("/static/css/font-glyphicons");
        JsAndCssUtil.importCss("/static/sool/style/basic");
        JsAndCssUtil.importCss("/static/sool/style/detailQuestionUnansweredMaster");
        JsAndCssUtil.importCss("/static/sool/style/mainQuestion");
        JsAndCssUtil.importCss("/static/sool/style/similaryQuestion");
        JsAndCssUtil.importCss("/static/sool/umeditor/themes/default/css/umeditor");
    </script>

</head>

<body>

<!--头部logo与我要提问的显示-->
<div id="ContainerId">
    <script type="text/javascript">
        renderNavBar();
    </script>
</div>

<div class="dq-frame am-animation-scale-down unique-height">
    <div class="dq-frame-left" id="left_div">

    </div>

    <div class="dq-frame-right doc-similary-style" id="question_info">
        <script type="text/javascript">
            $(function(){
                getSimilarQuestion();
            });
        </script>
    </div>

    <div class="clearFloat"></div>

</div>

<!--底部版权模块-->
<footer class="am-margin-top doc-footer-color">
    <hr/>
    <p class="am-text-center">
        <small>
            @copy;2015用友能源科技有限公司版权所有 京ICP备15038140号-1   官方微博   用户协议
        </small>
    </p>
</footer>

<script type="text/javascript">
    JsAndCssUtil.importJs("/static/sool/js/jquery");
    JsAndCssUtil.importJs("/static/js/amazeui.min");
    JsAndCssUtil.importJs("/static/js/handlebars.min");
    /*加载logo和NAV和search*/

    JsAndCssUtil.importJs("/static/sool/js/nav");

    /*加载引入公共的useID的文件*/
    JsAndCssUtil.importJs("/static/sool/data/bindingData");
    JsAndCssUtil.importJs("/static/sool/data/detailQuestionUnansweredMaster");
    JsAndCssUtil.importJs("/static/sool/umeditor/umeditor.min");
    JsAndCssUtil.importJs("/static/sool/umeditor/lang/zh-cn/zh-cn");
    JsAndCssUtil.importJs("/static/sool/umeditor/publish.umeditor.config");
    JsAndCssUtil.importJs("/static/sool/js/global");


</script>

<script type="text/x-handlebars-template" id="left_div_template">
    {{#with resultData}}
    <div class="dq-frame-left-question">

        <div class="doc-question-title-left">
            <img src="{{imgUrl pk_sool_user}}" alt="" height="68px" width="68px">
        </div>

        <div class="doc-question-title-right">
            <h3 class="dq-frame-left-question-title">
                <i class="fa fa-star am-text-danger"></i>&nbsp;{{question_title}}
            </h3>
            <div class="doc-question-title-right-bottom">
                <span class="dq-frame-left-question-username">
                    <i class="fa fa-user dq-icon-color"></i>
                    <a href="javascript:;">{{sool_username}}</a>
                </span>
                <span class="dq-frame-left-question-readnum">
                    <i class="fa fa-comments dq-icon-color"></i>
                    {{answercount}}&nbsp;回答
                </span>
                <span class="dq-frame-left-question-date">
                    <i class="fa fa-clock-o dq-icon-color"></i>
                    {{submissiontime}}
                </span>
            </div>
        </div>
        <div class="dq-frame-left-question-info">
            {{{description}}}
            <br>
            {{#if new_file_url}}
            <a> <i class="fa fa-paperclip"></i>附件:{{old_fileName}}</a>
            {{/if}}

            <!--<a href="javascript:getUpload();">
                <i class="fa fa-paperclip"></i>
                上传附件
            </a>
            <div class="uploadDisplay">
                <div id="queue"></div>
                <input id="file_upload" name="file_upload" type="file">
                <a href="javascript:$('#file_upload').uploadify('upload','*')">上传</a>
                <a href="javascript:$('#file_upload').uploadify('cancel')">取消</a>
                <div id="oldfilename"></div>
            </div>-->
        </div>
    </div>


    <div class="dq-frame-left-answer-detail-add">
            <button type="button" class="am-btn btn-add-color" value="{{pk_question}}" onclick="updateQuestion(this.value)" id="changeButton">
            修改问题
            </button>
    </div>
    <div class="clearFloat"></div>
    </div>
    {{/with}}
</script>

<!--相似问题的模板-->
<script type="text/javascript">
    loadSimilaryQuestion();
</script>

<script type="text/javascript">
    $(function(){
        getContext();
        //搜索按钮
        searchClick();
    });

    //判断搜索到的相似问题是否为精华问题
    Handlebars.registerHelper("isEssenceQuestion", function(essence, options){
        if(essence == 0){
            return options.fn(this);
        }else{
            return options.inverse(this);
        }
    });

</script>

</body>
</html>